package cn.com.generaldata.os.ws.impl.web;

import org.nutz.ioc.annotation.InjectName;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@InjectName
@Component
public class ReportImpWebAction {
	
	@Autowired
	private ReportAction reportAction;
	
	/**
	 * 跳转至导入页面
	 * */
	@At("/dataManage/impReportPage")
	@Ok("jsp:/static/ocean/dataManage/importWebData")
	public void toReportImportPage(){
		
	}
	
	/**
	 * 从专网导入数据至外网
	 * */
	@At("/dataManage/impWebReport")
	@Ok("json")
	public String impReport(){
		reportAction.importEIReport(1, 1);
		return "success";
	}
}
